#ifndef WEB_SERVER_H
#define WEB_SERVER_H

#include <atomic>
#include "Config.h"
#include "MotorController.h"
#include "WebDirectionLogic.h"
#include "Camera.h"
#include <httplib.h>

#include <memory>  // 用于 shared_ptr

namespace jetcar {
    void startWebServer(
        httplib::Server& svr,
        std::atomic<int>& target_speed,
        std::atomic<int>& current_dir,
        const Config& cfg,
        jetcar::MotorController& motor,
        UsbCamera& camera
    );



}

#endif // WEB_SERVER_H